﻿using System;
using Ficharts.Net.Examples.Code;

namespace Ficharts.Net.Examples.Examples.Markers
{
    public partial class Bubble : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Chart.ChartTitle.Title = "数值分布";
                Chart.XAxises.Add(new FieldAxis { Title = "数值项" });
                Chart.YAxises.Add(new LinearAxis { Title = "分布值" });
                Chart.Series.Add(new Net.Bubble { XField = "Label", YField = "Value", RadiusField = "Radius", SingleColor = true });
                Chart.DataSource = ExampleData.BubbleDatas();
                Chart.DataBind();
            }
        }
    }
}